package cn.kgc.ssm.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @author 课工场
 * @date 2023/10/27
 * @description
 */
@Data
@ExcelTarget("student")
public class Student {


    private  Integer id;
    @Excel(name = "学号",orderNum = "1")
    private String studentNo;
    @Excel(name = "姓名",orderNum = "2")
    private String name;
    @Excel(name = "年龄",orderNum = "3")
    private Integer age;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入学时间",importFormat = "yyyy/MM/dd",exportFormat = "yyyy/MM/dd",orderNum = "6")
    private Date schoolYear;

    @Excel(name = "专业",orderNum = "4")
    private String major;
    @Excel(name = "班级",orderNum = "5")
    private String clazz;

}
